package p_1;

/**
 * Created with beyond
 * Date:2018/8/26
 * Time:16:05
 **/
public class p1_1_8 extends Thread{

    private int i;
    public p1_1_8(int i){
        super();
        this.i=i;
    }
    @Override
    public void run(){
        System.out.println(i);
    }
}
class Test1{

public static void main(String[]args){
    p1_1_8 thread1=new p1_1_8(1);
    p1_1_8 thread2=new p1_1_8(2);
    p1_1_8 thread3=new p1_1_8(3);
    p1_1_8 thread4=new p1_1_8(4);
    p1_1_8 thread5=new p1_1_8(5);
    p1_1_8 thread6=new p1_1_8(6);
    p1_1_8 thread7=new p1_1_8(7);
    p1_1_8 thread8=new p1_1_8(8);

    thread1.start();
    thread2.start();
    thread3.start();
    thread4.start();
    thread5.start();
    thread6.start();
    thread7.start();
    thread8.start();
    System.out.println("*****************************");
//    thread1.run();
//    thread2.run();
//    thread3.run();
//    thread4.run();
//    thread5.run();
//    thread6.run();
//    thread7.run();
//    thread8.run();












        }
}